package com.tianji.tjpromotion.service;

import com.tianji.tjpromotion.domain.dto.UserCouponDTO;
import com.tianji.tjpromotion.domain.po.Coupon;
import com.tianji.tjpromotion.domain.po.UserCoupon;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户领取优惠券的记录，是真正使用的优惠券信息 服务类
 * </p>
 *
 * @author yp
 * @since 2024-08-04
 */
public interface IUserCouponService extends IService<UserCoupon> {


    /**
     * 领取优惠卷
     *
     * @param id
     */
    void receiveCoupon(Long id);


    /**
     * 兑换兑换码
     *
     * @param code
     */
    void exchangeCoupon(String code);

    void checkAndCreateUserCoupon(Coupon coupon, Long userId);

    void checkAndCreateUserCouponNew(UserCouponDTO msg);
}
